module.exports = class {
    constructor(scene) {
        this.scene = scene;
        this.modalGroup = scene.add.group();
    }

    create(options) {
        const {
            backgroundColor,
            modalCloseOnInput,
            includeBackground,
            backgroundOpacity,
        } = Object.assign({
            includeBackground: true,
            modalCloseOnInput: true,
            backgroundOpacity: .3,
            backgroundColor: 0x000000
        }, options);
        const {scene} = this;
        const {canvas} = scene.sys.game;
        const {width, height} = canvas;
        if (includeBackground === true) {
            const graphics = scene.add.graphics(width, height);
            graphics.fillStyle(backgroundColor, backgroundOpacity);
            graphics.fillRoundedRect(0, 0, width, height, 5);
            if (modalCloseOnInput === true) {
            }
        }
        console.log(width, height);
        // const graphics = modal.add.graphics();
        // graphics.fillStyle(0xffffff, 0.7);
        // modal.drawRect(0, 0, scene.width, scene.height);
        // modal.beginFill(backgroundColor, backgroundOpacity);
    }
}
